/*
 * @Author: zhangwenqiang
 * @Date: 2021-07-24 21:48:35
 * @LastEditors: OBKoro1
 * @LastEditTime: 2021-07-27 11:17:40
 * @FilePath: /operate/src/main.js
 */
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import Vue from 'vue'
import App from './App'
import router from './router'
// import VueRouter from 'vue-router'
// import Vuex from 'vuex'
// import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import request, { get, post } from '@/utils/request'
import Cookies from 'js-cookie'
import store from '@/store'
import './styles/reset.css'
import './styles/index.scss'
import VueI18n from 'vue-i18n'
import zh from './lang/zh'
import en from './lang/en'

const Vue = window.Vue
Vue.use(VueI18n)
// Vue.use(ElementUI)
Vue.use(Vuex)
Vue.use(VueRouter)
Vue.use({router})
Vue.config.productionTip = false
Vue.prototype.$Cookies = Cookies
Vue.prototype.productionTip = false
Vue.prototype.$axios = request
Vue.prototype.$get = get
Vue.prototype.$post = post
const i18n = new VueI18n({
  locale: 'zh-CN',    // 语言标识
  messages: {
    'zh-CN': zh,   // 通过require引入中文语言包
    'en-US': en    // 通过require引入英文语言包
  },
  silentTranslationWarn: true
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  i18n,
  components: { App },
  template: '<App/>'
})
